<div class="box">
  <div class="box-header">
    <ob_link><a class="btn" href="{:url('expertinroomAdd',array('room_id'=>$code,'room_name'=>$name))}"><i class="fa fa-plus"></i> 新 增</a></ob_link>

  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>小屋名称</th>
          <th>小屋编号</th>
          <th>专家姓名</th>
          <th>专家编号</th>
          <th>专家类型</th>
          <th>状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.roomname}</td>
                  <td>{$vo.room_id}</td>
                  <td>{$vo.expertname}</td>
                  <td>{$vo.expert_id}</td>
                  <td>{$vo.is_owner}</td>
                  <td>{$vo.status_text}</td>
                  <td class="col-md-3 text-center">

                     {if condition="$vo.is_owner neq '命名专家'"} 
                     <ob_link><a href="{:url('expertinroomDel',array('id'=>$vo.id,'room_id'=>$vo.room_id))}" class="btn ajax-get"><i class="fa fa-edit"></i>删除</a>
                     </ob_link>
{else}
  <a href=""><i class="fa fa-edit"></i>不可删除</a>
                     {/if}
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="9" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>